<template>
<p v-if="flag">赵建玲</p>
<p v-show="flag">冉佳硕</p>
  <button @click="flag=!flag">按钮</button>

</template>

<script lang="ts" setup>
import {ref} from "vue";

const flag=ref(true)
</script>

<style>

</style>
